package com.guigu.service.impl;

import com.guigu.dto.estimateDTO;
import com.guigu.entity.estimate;
import com.guigu.mapper.estimateMapper;
import com.guigu.service.estimateService;
import com.guigu.vo.estimateVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class estimateServicelmpl implements estimateService {

    @Autowired
    private estimateMapper esmapper;
    @Override
    public List<estimateVO> query(estimateDTO dto) {
        return this.esmapper.query(dto);
    }

    @Override
    public int add(estimate es) {
        return this.esmapper.addes(es);
    }

    @Override
    public int update(estimate es) {

        return this.esmapper.updatees(es);
    }

    @Override
    public int delete(int id) {
       return this.esmapper.deletees(id);
    }
}
